package edu.ycu.aladdin.collector;

import edu.ycu.aladdin.common.CommonConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.client.RestTemplate;

/**
 *
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 1.0
 */
@Configuration
public class AppConfig {

    @Bean("redisTemplate")
    public RedisTemplate<String,Object> redisTemplate(RedisTemplate redisTemplate){
        return CommonConfig.redisTemplateWithBasicSerializer(redisTemplate);
    }
}
